package com.paco.study.cloud.code.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "cloud-service-user",
        path = "/user",
        fallback = UserFeignFallBack.class,configuration = FeignConfig.class)
public interface UserFeignClient {
    @GetMapping("/isRegistered/{email}")
    public Boolean isRegistered(@PathVariable("email") String email);
}